/**
 * 
 */
package com.xbjtech.util;

import java.util.Random;

/**
 * @author Administrator
 *
 */
public class StringUtils {
	
	public static String randomNumString(int length) {
		char[] chars = {'0', '1', '2', '3', '5', '6', '7', '8', '9'};
		Random random = new Random();
		StringBuffer strBuffer = new StringBuffer();
		for (int i = 1; i <= length; i++) {
			strBuffer.append(chars[random.nextInt(chars.length)]);
		}
		return strBuffer.toString();
	}
	
	public static void main(String[] args) {
		System.out.println(StringUtils.randomNumString(6));
	}

}
